package com.sishuok.annotation;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
public class EmailService {
	
	@EventListener
	public void listenUserRegisterEvent(UserRegisterEvent userRegisterEvent) {
		System.out.println("注册成功。发送邮件给 " + userRegisterEvent.getSource());
	}

}
